import { Component,OnInit } from '@angular/core';
import {ModuleTree} from "../../entities/entities";
import {ActivatedRoute} from "@angular/router";
/**上左的样式*/
@Component({
  selector: 'layout-top-side-component',
  templateUrl:`LayoutTopSideComponent.html`,
  styles  : [`LayoutTopSideComponent.scss`]
})
export class LayoutTopSideComponent implements OnInit{
	rootTree:ModuleTree;
	constructor(private route:ActivatedRoute){
	}
	ngOnInit():void{
		this.route.data.subscribe(e=>{
			this.rootTree=e["rootTree"];
		});
	}
}